package com.hfut.eeg.dto;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.util.TimerTask;

/**
 * 今日异常波
 */
@Component
@Scope("singleton")
public class TodayErrWaves extends TimerTask {
    private volatile int errWaves;

    /**
     * 获取异常波
     * @return
     */
    public int getErrWaves() {
        return errWaves;
    }

    public void setErrWaves(int errWaves) {
        this.errWaves = errWaves;
    }

    @Override
    public void run() {
        errWaves = 0;
    }
}
